import request from '@/utils/request'

//查询字典
export function searchDic(params) {
  return request({
    url: 'admin/dic/search',
    method: 'get',
    params
  })
}

export function getDepartment(params) {
  return request({
    url: 'admin/common/department/list',
    method: 'get',
    params
  })
}

//项目状态变更
export function updateTreatment(data) {
  return request({
    url: 'admin/treatment/update',
    method: 'post',
    data
  })
}

//评估下拉
export function getEstimate(params) {
  return request({
    url: 'admin/estimate/list',
    method: 'get',
    params
  })
}

//治疗项目绑定院内HIS收费明细
export function getCost(params) {
  return request({
    url: 'admin/treatment/cost/list',
    method: 'get',
    params
  })
}

//费用名称查询
export function searchCost(params) {
  return request({
    url: 'admin/treatment/cost/search',
    method: 'get',
    params
  })
}

//项目绑定院内HIS收费项目
export function bindCost(data) {
  return request({
    url: 'admin/treatment/cost/bind',
    method: 'post',
    data
  })
}

//删除院内HIS收费项目
export function unBind(data) {
  return request({
    url: 'admin/treatment/cost/unBind',
    method: 'post',
    data
  })
}

